package com.cdshangpai.utils.db.beans;

import android.content.ContentValues;

import com.cdshangpai.utils.offlinecache.base.slot.IdPicker;
import com.cdshangpai.utils.offlinecache.base.slot.PhotosPicker;
import com.cdshangpai.utils.offlinecache.base.slot.TitleImagePicker;
import com.cdshangpai.utils.offlinecache.base.slot.VersionPicker;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//案例数据
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Case implements IdPicker, VersionPicker,TitleImagePicker, PhotosPicker {
    public Integer id;
    public Long index;
    public String title;
    public String content;
    public String titleimg;
    public String  area;
    public String color;
    public String style;
    public String price;
    public String city;
    public String photos;
    public String version;
    public Integer hotalid;
    public String hotal;
    public String titleimgUrl;
    public String photosUrl;

    public ContentValues getValues()
    {
        ContentValues values=new ContentValues();
        values.put("id",id);
        values.put("`index`",index);
        values.put("title",title);
        values.put("content",content);
        values.put("titleimg",titleimg);
        values.put("area",area);
        values.put("color",color);
        values.put("style",style);
        values.put("price",price);
        values.put("city",city);
        values.put("photos",photos);
        values.put("version",version);
        values.put("hotalid",hotalid);
        values.put("hotal",hotal);
        return values;
    }
}
